package com.jean.business.common.controller;

import javax.servlet.http.HttpServletRequest;

import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.jean.business.RespFactory;
import com.jean.business.event.resp.BaseResp;
import com.jean.common.ConstantConfigs;
import com.jean.common.ConstantReturnCode;
import com.jean.util.LoggerFactory;

/**
 * <一句话功能简述>通用业务Controller层 <功能详细描述>
 * 
 * @author Jean
 * @version [版本号, 2013年12月4日]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
@Controller
@RequestMapping(ConstantConfigs.REQUEST_MODULE_COMMON)
public class CommonController
{
    /**
     * 日志
     */
    private static Logger logger = LoggerFactory.getLogger();
    
    /**
     * <一句话功能简述>国际化切换语言
     * <功能详细描述>
     * @return
     * @see [类、类#方法、类#成员]
     */
    @RequestMapping("/i18n")
    @ResponseBody
    public BaseResp i18n(HttpServletRequest request)
    {
        logger.info("i18n controller start...");
        return RespFactory.getResp(request, ConstantReturnCode.MUSIC_SUCCESS);
    }
}
